<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">订单查看</a></li>
	</ul>

	<form class="form-horizontal js-ajax-form" action="{:U('Bdrunpeople/edit_see')}" method="post">
		<div class="row-fluid">
			<div class="span12">
				<php>$order_types=array("1"=>'取送订单',"2"=>'代买订单',"3"=>'代排队订单');
					$order_status=array("0"=>'未处理',"1"=>'待分配',"2"=>'已分配',"3"=>'已到达',"4"=>'已拍照',"5"=>"已取件","6"=>"已送达","7"=>"已完成","9"=>'已取消');
					$pay_methods=array("1"=>'支付宝',"2"=>'微信',"3"=>'钱包');
					$pay_status=array("0"=>'未支付',"1"=>'已支付',"2"=>'已退款');
					$yesno=array("2"=>'否',"1"=>'是');
					$cancel_part=array("1"=>'用户',"2"=>'派单员');
					$is_appoints=array("0"=>'否','1'=>'系统派单','2'=>'手动派单');
				</php>
				<if condition="$data[order_type] == 1">
					<table class="table table-bordered">
						<tr>
							<th width="80">{:L('ORDER_NUMBER')}:</th>
							<td>{$data.order_number}
							</td>
							<th width="80">{:L('PAY_METHOD')}:</th>
							<td  width="20%">{$pay_methods[$data[pay_method]]}
							</td>
							<th width="80">{:L('PAY_STATUS')}:</th>
							<td>	{$pay_status[$data[pay_status]]}
							</td>
							<th width="80">{:L('ORDER_TIME')}:</th>
							<td>{$data.order_time}
							</td>
						</tr>

						<tr>
							<th width="80" style="color:red">{:L('ORDER_TYPE')}:</th>
							<td  style="color: red">{$order_types[$data[order_type]]}
							</td>
							<th width="80" style="color: red">{:L('ORDER_AMOUNT')}:</th>
							<td>{$data.order_amount}
							</td>
							<th width="80">{:L('DEDUCT_AMOUNT')}:</th>
							<td>{$data.deduct_amount|default="0.00"}
							</td>
							<th width="80">优惠券类型:</th>
							<php>$coupons_type=array('1'=>'抵扣券','2'=>'折扣券');</php>
							<td>{$coupons_type[$data['coupon_type']]|default="无"}
							</td>
						</tr>
						<tr>
							<th width="80">{:L('STATUS')}:</th>
							<td style="color: red">{$order_status[$data[status]]}
							</td>
							<th width="80">{:L('REAL_AMOUNT')}:</th>
							<td>
								{$data.real_amount}
							</td>
							<th width="80">加急金额:</th>
							<td>{$data[insured_amount]|default="0.00"}
							</td>
							<th width="80" style="color: red">{:L('IS_RESERVATION')}:</th>
							<td>{$yesno[$data[is_reservation]]|default="否"}
							</td>
						</tr>
						<if condition="$data[status] == 9">
							<tr>
								<th width="80">{:L('CANCEL_PARTY')}:</th>
								<td>{$cancel_part[$data[cancel_party]]}
								</td>
								<th width="80">{:L('CANCEL_TIME')}:</th>
								<td>{$data.cancel_time}
								</td>
								<th width="80">取消事由:</th>
								<td colspan="3">{$cancles[$data['cancel_reason_id']]['cancle_reason']}
								</td>
							</tr>
						</if>
						<tr>
							</td><th width="80">物品类型:</th>
							<td >{$data[res_type]}
							</td>
							</td><th width="80">跑腿费:</th>
							<td >{$data[dispatch_get_money]|default="0.00"}
							</td>
							<th width="80">小费:</th>
							<td>{$data[fee]|default="0.00"}
							</td>
							<th width="80" style="color: red">预约时间:</th>
							<td>{$data[reservation_time]}
							</td>
						</tr>
						<tr>
							</td><th width="80" >跑客团队:</th>
							<td style="color: red">{$data.company_id|getCompanyName}
							</td>
							<th width="80">{:L('DISPATCH_NAME')}:</th>
							<td>{$dispatchs[$data['dispatch_id']]['dispatch_name']}
							</td>

							<th width="80">保险金额:</th>
							<td>{$data[insurance_amount]|default="0.00"}
							</td>
							<th width="80" style="color: red">是否指派单:</th>
							<td style="color: red">
								{$is_appoints[$data[is_appoint]]|default="否"}
							</td>
						</tr>
						<tr>
							<th width="80">{:L('JOB_NUMBER')}:</th>
							<td>{$dispatchs[$data['dispatch_id']]['job_number']}
							</td>
							<th width="80" style="color: red">{:L('MOBILE')}:</th>
							<td>{$dispatchs[$data['dispatch_id']]['mobile']}</td>
							<th width="80">{:L('CONVEYANCE_ID')}:</th>
							<td>{$data['conveyance_id']|conveyance}
							</td>
							<th width="80">配保温箱:</th>
							<td>{$yesno[$data[is_incubator]]|default="否"}
							</td>
						</tr>
						<tr>
							<th width="80">{:L('SEND_MOBILE')}:</th>
							<td>{$data.send_mobile}
							</td>
							<th width="80" style="color: red">出发地:</th>
							<td>{$data.send_address}
							</td>
							<th width="80">{:L('DISPATCH_START_TIME')}:</th>
							<td>{$data.dispatch_start_time}
							</td>
							<th  rowspan="5" width="80">取货照片:</th>
							<td rowspan="5"><img src="{$data.disp_before_img}" />
							</td>
						</tr>
						<tr>
							<th width="80">{:L('RECI_MOBILE')}:</th>
							<td style="color: red">{$data.reci_mobile}
							</td>
							<th width="80" style="color: red">目的地:</th>
							<td >{$data.reci_address}
							</td>
							<th width="80">{:L('DISPATCH_END_TIME')}:</th>
							<td>{$data.dispatch_end_time}
							</td>
						</tr>
						<tr>
							<th width="80" style="color: red">{:L('TOTAL_MILEAGE')}:</th>
							<td>{$data.total_mileage}公里
							</td>
							<th width="80" style="color: red">门牌号:</th>
							<td >{$data.reci_address_floor}
							</td>
							<th width="80">到达时间:</th>
							<td>{$data.get_time}
							</td>
						</tr>
						<tr>
							<th width="80">{:L('USER_EVAL_VALUE')}:</th>
							<td>{$data.user_eval_value}
							</td>
							<th width="80">补充说明:</th>
							<td >{$data.remark}
							</td>
							<th width="80">已送达时间:</th>
							<td>{$data.disp_arrive_time}
							</td>
						</tr>
						<tr>
							<th width="80">{:L('DISP_EVAL_VALUE')}:</th>
							<td>{$data.disp_eval_value}
							</td>
							<th width="80">{:L('GET_VALI_CODE')}:</th>
							<td>{$data.get_vali_code}
							</td>
							<th width="80">订单完成时间:</th>
							<td>{$data.finish_time}
							</td>
						</tr>
						<tr>
							<th width="80">{:L('SEND_LATIT')}:</th>
							<td>
								{$data.send_latit}
							</td>
							<th width="80">{:L('SEND_LONGIT')}:</th>
							<td>
								{$data.send_longit}
							</td>
							<th width="80">{:L('RECI_LATIT')}:</th>
							<td>
								{$data.reci_latit}
							</td>
							<th width="80">{:L('RECI_LONGIT')}:</th>
							<td>
								{$data.reci_longit}
							</td>
						</tr>
					</table>
				</if>
				<if condition="$data[order_type] == 2">
					<table class="table table-bordered">
						<tr>
							<th width="80">{:L('ORDER_NUMBER')}:</th>
							<td>{$data.order_number}
							</td>
							<th width="80">{:L('PAY_METHOD')}:</th>
							<td  width="20%">{$pay_methods[$data[pay_method]]}
							</td>
							<th width="80">{:L('PAY_STATUS')}:</th>
							<td>	{$pay_status[$data[pay_status]]}
							</td>
							<th width="80">{:L('ORDER_TIME')}:</th>
							<td>{$data.order_time}
							</td>
						</tr>

						<tr>
							<th width="80" >{:L('ORDER_TYPE')}:</th>
							<td style="color: red">{$order_types[$data[order_type]]}
							</td>
							<th width="80" style="color: red">{:L('ORDER_AMOUNT')}:</th>
							<td>{$data.order_amount}
							</td>
							<th width="80">{:L('DEDUCT_AMOUNT')}:</th>
							<td>{$data.deduct_amount|default="0.00"}
							</td>
							<th width="80">优惠券类型:</th>
							<php>$coupons_type=array('1'=>'抵扣券','2'=>'折扣券');</php>
							<td>{$coupons_type[$data['coupon_type']]|default="无"}
							</td>
						</tr>
						<tr>
							<th width="80">{:L('STATUS')}:</th>
							<td style="color: red">{$order_status[$data[status]]}
							</td>
							<th width="80">{:L('REAL_AMOUNT')}:</th>
							<td>
								{$data.real_amount}
							</td>
							<th width="80" style="color: red">跑客垫付金额:</th>
							<td>{$data.goods_amount|default="0.00"}
							</td>
							<th width="80" style="color: red">是否知道价格:</th>
							<td>{$yesno[$data[is_have_price]]}
							</td>

						</tr>
						<if condition="$data[status] == 9">
							<tr>
								<th width="80">{:L('CANCEL_PARTY')}:</th>
								<td>{$cancel_part[$data[cancel_party]]}
								</td>
								<th width="80">{:L('CANCEL_TIME')}:</th>
								<td>{$data.cancel_time}
								</td>
								<th width="80">取消事由:</th>
								<td colspan="3">{$cancles[$data['cancel_reason_id']]['cancle_reason']}
								</td>
							</tr>
						</if>
						<tr>
							</td><th width="80">物品类型:</th>
							<td >{$data[res_type]}
							</td>
							</td><th width="80">跑腿费:</th>
							<td >{$data[dispatch_get_money]|default="0.00"}
							</td>
							<th width="80">加急金额:</th>
							<td>{$data[insured_amount]|default="0.00"}
							</td>
							<th width="80" style="color: red">{:L('IS_RESERVATION')}:</th>
							<td>{$yesno[$data[is_reservation]]|default="否"}
							</td>

						</tr>
						<tr>
							</td><th width="80">跑客团队:</th>
							<td style="color: red">{$data.company_id|getCompanyName}
							</td>
							<th width="80">{:L('DISPATCH_NAME')}:</th>
							<td>{$dispatchs[$data['dispatch_id']]['dispatch_name']}
							</td>
							<th width="80">小费:</th>
							<td>{$data[fee]|default="0.00"}
							</td>
							<th width="80" style="color: red">预约时间:</th>
							<td>{$data[reservation_time]}
							</td>

						</tr>
						<tr>
							<th width="80">{:L('JOB_NUMBER')}:</th>
							<td>{$dispatchs[$data['dispatch_id']]['job_number']}
							</td>
							<th width="80" style="color: red">{:L('MOBILE')}:</th>
							<td>{$dispatchs[$data['dispatch_id']]['mobile']}</td>
							<th width="80">保险金额:</th>
							<td>{$data[insurance_amount]|default="0.00"}
							</td>
							<th width="80" style="color: red">是否指派单:</th>
							<td style="color: red">
								{$is_appoints[$data[is_appoint]]|default="否"}
							</td>

						</tr>
						<tr>
							<th width="80">{:L('SEND_MOBILE')}:</th>
							<td>{$data.send_mobile}
							</td>
							<th width="80" style="color: red">送到哪:</th>
							<td>{$data.reci_address}
							</td>
							<th width="80">{:L('CONVEYANCE_ID')}:</th>
							<td>{$data['conveyance_id']|conveyance}
							</td>
							<th width="80">配保温箱:</th>
							<td>{$yesno[$data[is_incubator]]|default="否"}
							</td>

						</tr>
						<tr>
							<th width="80">{:L('RECI_MOBILE')}:</th>
							<td style="color: red">
							<if condition="$data[reci_mobile]==0">
								无
								<else/>
								{$data.reci_mobile}
							</if>
				</td>
							<th width="80" style="color: red">门牌号:</th>
							<td >{$data.reci_address_floor}
							</td>
							
							<th width="80">{:L('DISPATCH_START_TIME')}:</th>
							<td>{$data.dispatch_start_time}
							</td>
							<th  rowspan="3" width="80">取货照片:</th>
							<td rowspan="3"><img src="{$data.disp_before_img}" />
							</td>
						</tr>
						<tr>
							<th width="80" style="color: red">{:L('TOTAL_MILEAGE')}:</th>
							<td>{$data.total_mileage}公里
							</td>
							<th width="80" style="color: red">在哪买:</th>
							<td >{$data.send_address}
							</td>
							<th width="80">{:L('DISPATCH_END_TIME')}:</th>
							<td>{$data.dispatch_end_time}
							</td>
						</tr>
						<tr>
							<th width="80">{:L('USER_EVAL_VALUE')}:</th>
							<td>{$data.user_eval_value}
							</td>
							<th width="80">补充说明:</th>
							<td >{$data.remark}
							</td>

							<th width="80">到达时间:</th>
							<td>{$data.get_time}
							</td>
						</tr>
						<tr>
							<th width="80">{:L('DISP_EVAL_VALUE')}:</th>
							<td>{$data.disp_eval_value}
							</td>
							<th width="80">{:L('GET_VALI_CODE')}:</th>
							<td>{$data.get_vali_code}
							</td>

							<th width="80">已送达时间:</th>
							<td>{$data.disp_arrive_time}
							</td>
							<th width="80">订单完成时间:</th>
							<td>{$data.finish_time}
							</td>
						</tr>
						<tr>
							<th width="80">{:L('SEND_LATIT')}:</th>
							<td>
								{$data.send_latit}
							</td>
							<th width="80">{:L('SEND_LONGIT')}:</th>
							<td>
								{$data.send_longit}
							</td>
							<th width="80">{:L('RECI_LATIT')}:</th>
							<td>
								{$data.reci_latit}
							</td>
							<th width="80">{:L('RECI_LONGIT')}:</th>
							<td>
								{$data.reci_longit}
							</td>
						</tr>
					</table>
				</if>
				<if condition="$data[order_type] == 3">
					<table class="table table-bordered">
						<tr>
							<th width="8%">{:L('ORDER_NUMBER')}:</th>
							<td width="22%">{$data.order_number}
							</td>
							<th width="80" width="8%">{:L('PAY_METHOD')}:</th>
							<td>{$pay_methods[$data[pay_method]]}
							</td>
							<th width="80"width="12%">{:L('PAY_STATUS')}:</th>
							<td>	{$pay_status[$data[pay_status]]}
							</td>
							<th width="80" width="8%">{:L('ORDER_TIME')}:</th>
							<td>{$data.order_time}
							</td>
						</tr>

						<tr>
							<th width="80">{:L('ORDER_TYPE')}:</th>
							<td  style="color: red">{$order_types[$data[order_type]]}
							</td>
							<th width="80">{:L('ORDER_AMOUNT')}:</th>
							<td>{$data.order_amount}
							</td>
							<th width="80">{:L('DEDUCT_AMOUNT')}:</th>
							<td>{$data.deduct_amount|default="0.00"}
							</td>
							<th width="80">优惠券类型:</th>
							<php>$coupons_type=array('1'=>'抵扣券','2'=>'折扣券');</php>
							<td>{$coupons_type[$data['coupon_type']]|default="无"}
							</td>
						</tr>
						<tr>
							<th width="80">{:L('STATUS')}:</th>
							<td style="color: red">{$order_status[$data[status]]}
							</td>
							<th width="80">{:L('REAL_AMOUNT')}:</th>
							<td>
								{$data.real_amount}
							</td>

							<th width="80">加急金额:</th>
							<td>{$data[insured_amount]|default="0.00"}
							</td>
							<th width="80" style="color: red">{:L('IS_RESERVATION')}:</th>
							<td>{$yesno[$data[is_reservation]]|default="否"}
							</td>
						</tr>
						<if condition="$data[status] == 9">
							<tr>
								<th width="80">{:L('CANCEL_PARTY')}:</th>
								<td>{$cancel_part[$data[cancel_party]]}
								</td>
								<th width="80">{:L('CANCEL_TIME')}:</th>
								<td>{$data.cancel_time}
								</td>
								<th width="80">取消事由:</th>
								<td colspan="3">{$cancles[$data['cancel_reason_id']]['cancle_reason']}
								</td>
							</tr>
						</if>
						<tr>
							</td><th width="80">物品类型:</th>
							<td >{$data[res_type]}
							</td>
							</td><th width="80">跑腿费:</th>
							<td >{$data[dispatch_get_money]|default="0.00"}
							</td>
							<th width="80">小费:</th>
							<td>{$data[fee]|default="0.00"}
							</td>
							<th width="80" style="color: red">预约时间:</th>
							<td>{$data[reservation_time]}
							</td>
						</tr>
						<tr>
							</td><th width="80" >跑客团队:</th>
							<td style="color: red">{$data.company_id|getCompanyName}
							</td>
							<th width="80">{:L('DISPATCH_NAME')}:</th>
							<td>{$dispatchs[$data['dispatch_id']]['dispatch_name']}
							</td>
							<th width="80">保险金额:</th>
							<td>{$data[insurance_amount]|default="0.00"}
							</td>

							<th width="80" style="color: red">是否指派单:</th>
							<td style="color: red">
								{$is_appoints[$data[is_appoint]]|default="否"}
							</td>
						</tr>
						<tr>
							<th width="80">{:L('JOB_NUMBER')}:</th>
							<td>{$dispatchs[$data['dispatch_id']]['job_number']}
							</td>
							<th width="80" style="color: red">{:L('MOBILE')}:</th>
							<td>{$dispatchs[$data['dispatch_id']]['mobile']}</td>
							<th width="80">{:L('GET_VALI_CODE')}:</th>
							<td>{$data.get_vali_code}
							</td>

							<th width="80">配保温箱:</th>
							<td>{$yesno[$data[is_incubator]]|default="否"}
							</td>
						</tr>
						<tr>
							<th width="80" style="color: red">排队开始时间:</th>
							<td>
								{$data.queue_time}
							</td>
							<th width="80">排队时长:</th>
							<td>
								{$data.hour_long}
							</td>
							<th width="80">{:L('DISPATCH_START_TIME')}:</th>
							<td>{$data.dispatch_start_time}
							</td>
							<th width="80" rowspan="4">排队照片:</th>
							<td rowspan="4"><img src="{$data.disp_before_img}" />
							</td>
						</tr>
						<tr>
							<th width="80" style="color: red">代排队电话:</th>
							<td>{$data.replace_mobile}
							</td>

							<th width="80">延长时长:</th>
							<td>
								{$data.delayed}
							</td>

							<th width="80">{:L('DISPATCH_END_TIME')}:</th>
							<td>{$data.dispatch_end_time}
							</td>
						</tr>
						<tr>
							<th width="80" style="color: red">排队地点:</th>
							<td >{$data.queue_address}
							</td>
							<th width="80">排队到达时间:</th>
							<td>{$data.get_time}
							</td>
							<th width="80">排队结束时间:</th>
							<td>{$data.disp_arrive_time}
							</td>

						</tr>
						<tr>
							<th width="80">补充说明:</th>
							<td colspan="3">{$data.remark}
							</td>
							<th width="80">订单完成时间:</th>
							<td>{$data.finish_time}
							</td>
						</tr>
						<tr>
							<th width="80">{:L('USER_EVAL_VALUE')}:</th>
							<td>{$data.user_eval_value}
							</td>
							<th width="80">{:L('DISP_EVAL_VALUE')}:</th>
							<td>{$data.disp_eval_value}
							</td>

							<th width="80">排队纬度:</th>
							<td>
								{$data.reci_latit}
							</td>
							<th width="80">排队经度:</th>
							<td>
								{$data.reci_longit}
							</td>

						</tr>
					</table>
				</if>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">{:L('REMARK')}:</label>
			{$data['remark']}
		</div>
		<div class="form-actions" style="align-content:center ">
			<a class="btn" href="{:U('bdrunpeople/order_list',array('formget'=>$formget))}">{:L('BACK')}</a>
		</div>
		</table>
		<iframe src="{:U('map/maproute',array('shippingLat'=>$data['send_latit'],'shippingLng'=>$data['send_longit'],'collectLat'=>$data['reci_latit'],'collectLng'=>$data['reci_longit'],'order_id'=>$data['order_id']))}"frameborder="0px" width="100%" height="700px"></iframe>

	</form>
</div>

<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>